<?php
class CONFIG {
    private static $CONFIG = array(
        'database'=> array(
            'driver'=>'mysql', // Db driver
            'host'=>'localhost',
            'database'=>'crash_reporter',
            'username'=>'root',
            'password'=>'',
            'charset'=>'utf8', // Optional
            'collation'=>'utf8_general_ci', // Optional
            'prefix'=>'', // Table prefix, optional
        ),
        'debug'=>FALSE,
        'site_url' => "http://10.127.10.62/CrashReporter/",
        'daily_paths' => array(
        "/home/zhiling/User/capricorn_update_images/",
        "/home/zhiling/User/alishan_update_images/"
        )
    );
    public static function get($alias) {
        if (isset(self::$CONFIG[$alias]))
            return self::$CONFIG[$alias];
        $method = "get_$alias";
        if (!method_exists(self, $method))
            return array();
        return self::$method();
    }
}

define("FILE_UPLOAD_PATH", "/opt/lampp/htdocs/CrashReporter/upload/");
define("WORK_PATH", "/var/crash_reporter_work/");
define("NDK_PATH", "/opt/android-ndk-r9c/");
define("APPPATH", './');
define("JIRA_ADDRESS", 'https://jira.garmin.com.tw/browse/');
define("VIEW_STANDALONE", 'standalone');
define("VIEW_ALL", 'all');
define("PROCESS_TYPE_JAVA", 1);
define("PROCESS_TYPE_NATIVE", 0);
?>